import request from '@/utils/request'

// 查询锁密码对应列表
export function listPwd(query) {
  return request({
    url: '/lock/pwd/list',
    method: 'get',
    params: query
  })
}

export function trunOnLocks(){
	return request({
		url:'/lock/info/TrunOnLocks',
		method:'get'
	})
}

// 查询锁密码对应详细
export function getPwd(id) {
  return request({
    url: '/lock/pwd/' + id,
    method: 'get'
  })
}

// 新增锁密码对应
export function addPwd(data) {
  return request({
    url: '/lock/pwd/add',
    method: 'post',
    data: data
  })
}

// 修改锁密码对应
export function updatePwd(data) {
  return request({
    url: '/lock/pwd/edit',
    method: 'post',
    data: data
  })
}

// 删除锁密码对应
export function delPwd(id) {
  return request({
    url: '/lock/pwd/' + id,
    method: 'delete'
  })
}

// 导出锁密码对应
export function exportPwd(query) {
  return request({
    url: '/lock/pwd/export',
    method: 'get',
    params: query
  })
}

